package com.woniuxy.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
public class MyDto implements Serializable {
    private Integer code;
    private String msg;
    private Object data;

    public MyDto(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public MyDto() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static MyDto loginDtoSuccess=new MyDto(200,"登陆成功");
    public static MyDto loginDtoFail=new MyDto(-200,"账号或密码有误");
}
